public class SumOverload {
    public static void add(int x, int y) {
        System.out.println(x+y);
    }

    public static void add(float x, float y, float z) {
        System.out.println(x+y+z);
    }

    public static void main(String[] args) {
        int x = 2;
        int y = 1;
        float a = 2.3F;
        float b = 1.5F;
        float c = 2.7F;
        add(x,y);
        add(a,b,c);
    }
}
